(function () {
    //移动应用(h5,app,小程序)设计器入口，可以编辑 布局和数据
    window.main = function () {
        var app = this;
        app.checkSessionServiceName = document.getElementById("checkSessionService").value;
        app.loginServiceName = "";
        //获取AccessToken 
        // 
        //services 
         var key= document.getElementById('pageKey').value;
         setTimeout(function(){

            //展示 DIY页面设计器
            Rsd.create('Rsd.tool.AppDesigner', {
                page: {
                    Id: '',
                    Key: key,
                    Name: '',
                    Title:'页面设计',
                },
                key: key,
                draggable:false,
                floating: false, 
                fixed:true,
                width: '100%',
                height: '100%',
                data: '#this is share page',
                fileDownloadServiceName: 'aliyun.merch.oss.cms.download',
                style:{
                    backgroundColor:'#e6f1fa',
                    left:0,
                    right:0,
                    top:0,
                    bottom:0
                }

            }).showDialog();

         },1000); 
    }

})();